package cn.wolfcode.web.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.web.feign.fallback.IntergaralFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "intergral-service" , fallback = IntergaralFeignFallback.class)
public interface IntergralFeignApi {

    @RequestMapping("/intergral/payIntergral")
    Result<String> payIntergral(@RequestBody OperateIntergralVo operateIntergralVo);

    @RequestMapping("/intergral/refundIntergral")
    Result<String> refundIntergral(@RequestBody OperateIntergralVo operateIntergralVo);
}
